/*
** serveur.h for zappy in /home/fassi_c//zappy2/zappouet/server/serveur_dir
**
** Made by clement fassi
** Login   <fassi_c@epitech.net>
**
** Started on  Wed Jun 29 11:29:38 2011 clement fassi
** Last update Sat Jul  9 17:26:43 2011 sevan hubert
*/

#ifndef _SERVEUR_H_
# define _SERVEUR_H_

#include <sys/select.h>
#include "./utils/utils.h"
#include "./utils/utils.h"

t_list		*del_client(int fd, t_list *list);
int		get_max_fd(t_list *list, int s);
void		do_command(int nb, char *buf, t_list *list, int fd, char *nick);

typedef struct Loop
{
  fd_set	readf, writef;
  char		*buf;
  t_list	*list;
  t_list	*tmp;
  int		nb;
  int		j;
  int		fdmax;
} Loop;

#endif /* _SERVEUR_H_ */
